package com.lin.cloud.disk.common.exception;

import com.lin.cloud.disk.common.enums.ResponseCode;

/**
 * 业务异常类
 * @author ljc
 * @date 2020/12/10 14:01
 */
public class BusinessException extends BaseException{

    public BusinessException(String code, String description, boolean isRecord, Throwable cause) {
        super(code, description, isRecord, cause);
    }

    public BusinessException(String code, String description, boolean isRecord) {
        super(code, description, isRecord);
    }

    public BusinessException(String code, String description) {
        super(code, description);
    }

    public BusinessException(String description, boolean isRecord) {
        super(description, isRecord);
    }

    public BusinessException(String description) {
        super(description);
    }

    public BusinessException(String description, boolean isRecord, Throwable cause) {
        super(description, isRecord, cause);
    }

    public BusinessException(String description, Throwable cause) {
        super(description, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(ResponseCode resp){
        super(resp.getCode(), resp.getDescribe());
    }
}
